#!/bin/sh

set -e

echo "Deleting unused AppArmor profiles"

(
   cd /etc/apparmor.d
   rm \
       apache2.d/phpsysinfo     \
       sbin.klogd               \
       sbin.syslogd             \
       sbin.syslog-ng           \
       usr.bin.chromium-browser \
       usr.lib.dovecot.*        \
       usr.sbin.dnsmasq         \
       usr.sbin.dovecot         \
       usr.sbin.identd          \
       usr.sbin.mdnsd           \
       usr.sbin.nmbd            \
       usr.sbin.ntpd            \
       usr.sbin.nscd            \
       usr.sbin.smb*
)
